<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件列表</title>
</head>
<body>
<h1>文件列表</h1>
<table border="1" width="800px">
    <tr>
        <th>序号</th>
        <th>文件名</th>
        <th>大小</th>
        <th>上传时间</th>
        <th>操作</th>
    </tr>
<%--   for(file : files) --%>
    <c:forEach items="${files}" var="file" varStatus="status">
        <tr>
            <td>${status.count}</td>
            <td>${file.name}</td>
            <td>${file.size}</td>
            <td>${file.uploadTime}</td>
            <td><a href="downloadv2?id=${file.id}">下载</a></td>
        </tr>
    </c:forEach>

</table>

</body>
</html>
